package com.user.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.user.dao.UserMapper;
import com.user.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.soap.Addressing;
import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> selectAllUser(){
        QueryWrapper<User> wrapper = new QueryWrapper<>();
        User user = new User();
        wrapper.setEntity(user);
        return userMapper.selectList(Wrappers.emptyWrapper());
    }

}
